package com.chw.springbootmybatis;

import org.apache.ibatis.parsing.XNode;
import org.apache.ibatis.parsing.XPathParser;

import java.io.InputStream;

public class Test {

    public static void main(String[] args) {
        InputStream resourceAsStream = Test.class.getClassLoader().getResourceAsStream("text.xml");
        XPathParser xPathParser = new XPathParser(resourceAsStream);
        XNode select = xPathParser.evalNode("mapper/select");
        System.out.println(select.toString());
    }
}
